﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class CounterpartyLimit
    {      
        #region Properties
              // COUNTERPARTY_LIMIT_ID
        public virtual int CounterpartyLimitId { set; get; }
      // ASSET_CLASS_ID
        public virtual int? AssetClassId { set; get; }
      // COUNTERPARTY_LIMIT_GOV_PERCENT
        public virtual int? CounterpartyLimitGovPercent { set; get; }
      // COUNTERPARTY_LIMIT_FI_PERCENT
        public virtual int? CounterpartyLimitFiPercent { set; get; }
      // COUNTERPARTY_LIMIT_SE_PERCENT
        public virtual int? CounterpartyLimitSePercent { set; get; }
      // COUNTERPARTY_LIMIT_IG_PERCENT
        public virtual int? CounterpartyLimitIgPercent { set; get; }
      // COUNTERPARTY_LIMIT_LISTED_PERCENT
        public virtual int? CounterpartyLimitListedPercent { set; get; }
      // COUNTERPARTY_LIMIT_OTHER_PERCENT
        public virtual int? CounterpartyLimitOtherPercent { set; get; }
      // COUNTERPARTY_LIMIT_START_DATE
        public virtual DateTime? CounterpartyLimitStartDate { set; get; }
      // COUNTERPARTY_LIMIT_EXPIRE_DATE
        public virtual DateTime? CounterpartyLimitExpireDate { set; get; }
      // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
      // CREATE_TS
        public virtual DateTime CreateTs { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(CounterpartyLimit) && !(obj is CounterpartyLimit))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",CounterpartyLimitId);
        }

    }
}
